package com.tn.rtdata.jmx;

import java.util.ArrayList;
import java.util.List;

/**
 * The base class the the <i>info</i> MXBeans specialize.
 */
public abstract class AbstractInfo
{
  /**
   * Converts the <code>parameters</code> to their <code>String</code> representations.
   */
  protected List<String> convertFillParameters(List<?> parameters)
  {
    List<String> convertedParameters = new ArrayList<String>();

    for (Object parameter : parameters)
    {
      if (parameter != null)
      {
        convertedParameters.add(parameter.toString());
      }
    }

    return convertedParameters;
  }
}
